<script type="text/javascript" language="javascript" src="/gaf/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/gaf/css/base.css" />
<link rel="stylesheet" type="text/css" href="/gaf/css/common.css" />
<link rel="stylesheet" type="text/css" href="/gaf/css/table_def.css" />
<p>酒店管理/添加客房信息</p>
<?php require_once('views/msg.phtml');?>
<form action="/hotel/hotel/doaddroom">
	<input type="hidden" id="hotelid" name="hotelid" value="<?php echo $this->hotelid;?>">
	<table>
		<tr><td>酒店名称:<input type="text" readonly id="name" name="name" value="<?php echo $this->hotel['hotelname']?>">
		房间类型:<select id="roomtype" name="roomtype">
			<option value="0">标准间</option>
			<option value="1">双人间</option>
			<option value="2">三人间</option>
			<option value="3">其他</option>							
		</select>
		价格类型:<select id="pricetype" name="pricetype">
			<option value="0">门市价</option>
			<option value="1">会员价</option>
			<option value="2">持卡价</option>								
		</select>
		</td></tr><tr><td>
		房间价格:<input type="text" id="price" name="price" size="20"/> 元
		房间数量:<input type="text" id="roomnum" name="roomnum" size="20"/> 间
		</td></tr>
	</table>
	<p>客房详细描述:</p>
	<p><textarea  title="客房详细描述" id="roomdetail" name="roomdetail" style="overflow:scroll;height:100;width:400"></textarea></p>
	<input type="submit" value="添加">
	<p>房间类型列表:</p>
	<?php	echo $this->ArrayGrid($this->roomList,$this->page,20,
		 		array('id'=>'房间ID','roomtype'=>'房间类型','pricetype'=>'价格类型','price'=>'房间价格'),
				array(	
					'act_title' => '操作','act_key'=>'id',
		 			'act_list'  => array(
		 			 array(
		 				'title'=>'查看修改',
		 				'url'=>'/hotel/hotel/getroom',
		 				),
		 			 array(
		 				'title'=>'删除',
		 				'url'=>'/hotel/hotel/delroom/hotelid/'.$this->hotelid,
 						),
		 			)
				),
				array(
					'roomtype'=>array('0'=>'标准间','1'=>'双人间','2'=>'三人间','3'=>'其他'),
					'pricetype'=>array('0'=>'门市价','1'=>'会员价','2'=>'持卡价')
				)	
			 );
			 ?>
	</form>